package com.zxm.web.controller.message.netty;

import com.github.houbb.heaven.util.util.RandomUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author silence.Z
 * @Date 2022/9/6 11:43
 * @PackageName:com.zxm.web.controller.message.netty
 * @ClassName: NettyMessageController
 * @Description: TODO netty+ws实现消息推送
 * @Version 1.0
 */
@Controller
public class NettyMessageController {
	@GetMapping("/nettymessage")
	public ModelAndView NettyMessage(){
		ModelAndView mav=new ModelAndView("socket");
		mav.addObject("uid", RandomUtil.randomNumber(6));
		return mav;
	}
}
